<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>欢迎登录系统</title>
    <link href="resources/assets/css/login.css" rel="stylesheet" type="text/css"/>
    
<script type="text/javascript">    

function doSubmit() {
    document.loginform.submit();
}    
document.onkeydown=function(event){
    var e = event || window.event || arguments.callee.caller.arguments[0];
    if(e && e.keyCode==27){ // 按 Esc 
        //要做的事情
      }
    if(e && e.keyCode==113){ // 按 F2 
         //要做的事情
       }            
     if(e && e.keyCode==13){ // enter 键
         doSubmit();
    }
}; 

 
</script>    
</head>

<body>
<div class="main-login">
    <p class="login-title">成都农商银行交易展示</p>
    <div class="login-content">
        <form action="${ctx }/login.html" method="post" id="login-form" class="login-form" name="loginform">
            <div class=" login-left">
                <div class="logo"><img src="resources/assets/img/logo.png"></div>
            </div>
            <div class="login-left login-right-box">
                <div class="login-info">
                    <input name="accountName" id="accountName" type="text" placeholder="请输入用户名" class="login-input" value="admin"/>
                </div>
                <div class="login-info">
                    <input name="password" id="password" type="password" placeholder="请输入密码" class="login-input" value="admin"/>
                </div>
                <input type="button" class="login-btn" value="登录"  onclick="doSubmit()" >
                <div  class="login-msg">
            		<c:out value ="${error}" />
            	</div>
            </div>
           

        </form>
    </div>
    <div class="bottom">温馨提示！建议使用Chrome、firefox、IE11等主流浏览器，设备分辨率1366*768</div>
</div>
<%--  <div class="error">
 		<c:out value ="${error}" />
 		<c:if test="${request.getAttribute("error")} != null"></c:if>
	                <input type="text"  id="msg" value="<%=request.getAttribute("error")%>" />    
 </div> --%>
 <script src="resources/assets/js/jquery-1.8.2.min.js"></script>
        <!-- <script src="resources/assets/js/supersized.3.2.7.min.js"></script>
        <script src="resources/assets/js/supersized-init.js"></script>  -->
        <script src="resources/assets/js/scripts.js"></script>
         <!--  <script src="resources/assets/js/AjaxRequest.js"></script>-->
</body>

</html>

</html>